

<%@ page import="br.com.incodeworks.mercurio.Projeto" %>
<!doctype html>
<html>
<head>
<meta name="layout" content="main">
<g:set var="entityName" value="${message(code: 'projeto.label', default: 'Projeto')}" />
<title><g:message code="default.list.label" args="[entityName]" /></title>
</head>
<body>





	<div class="flat_area grid_16">
		<h2>
			<g:message code="default.list.label" args="[entityName]" />
		</h2>

		<g:if test="${flash.message}">
			<div class="alert dismissible alert_blue">
				<g:img height="24" width="24" file="icons/small/white/alert_2.png" />
				${flash.message}
			</div>
		</g:if>
	</div>

	<div class="box grid_16">
		<div class="block">
			<div class="section clearfix">
				<fieldset class="label_side label_small">
					<g:link action="create">
						<button class="img_icon has_text">
							<g:img file="icons/small/white/create_write.png" />
							<span><g:message code="default.new.label" args="[entityName]" /></span>
						</button>
					</g:link>
				</fieldset>
			</div>
		</div>
	</div>

	<div class="box grid_16 single_datatable">
		<div id="dt1" class="no_margin">
			<table class="display datatable">
				<thead>
					<tr>
						
							<g:sortableColumn property="nome" title="${message(code: 'projeto.nome.label', default: 'Nome')}" />
						
							<g:sortableColumn property="descricao" title="${message(code: 'projeto.descricao.label', default: 'Descricao')}" />
						
							<th><g:message code="projeto.projetoPai.label" default="Projeto Pai" /></th>
						
					</tr>
				</thead>
				<tbody>
					<g:each in="${projetoInstanceList}" status="i" var="projetoInstance">
						<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
							
						<td><g:link action="show" id="${projetoInstance.id}">${fieldValue(bean: projetoInstance, field: "nome")}</g:link></td>
					
						<td>${fieldValue(bean: projetoInstance, field: "descricao")}</td>
					
						<td>${fieldValue(bean: projetoInstance, field: "projetoPai")}</td>
					
						</tr>
					</g:each>

				</tbody>
			</table>
			<div class="pagination">
				<g:paginate total="${projetoInstanceTotal}" />
			</div>
		</div>
	</div>
</body>
</html>
